package com.ruoyi.project.system.fuelconsumptioninfo.service.impl;

import java.util.List;

import com.ruoyi.project.system.fuelconsumptioninfo.domain.VeFuelconsumptioninfoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.fuelconsumptioninfo.mapper.VeFuelconsumptioninfoMapper;
import com.ruoyi.project.system.fuelconsumptioninfo.domain.VeFuelconsumptioninfo;
import com.ruoyi.project.system.fuelconsumptioninfo.service.IVeFuelconsumptioninfoService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-07
 */
@Service
public class VeFuelconsumptioninfoServiceImpl implements IVeFuelconsumptioninfoService 
{
    @Autowired
    private VeFuelconsumptioninfoMapper veFuelconsumptioninfoMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param consumptionID 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public VeFuelconsumptioninfo selectVeFuelconsumptioninfoByConsumptionID(Long consumptionID)
    {
        return veFuelconsumptioninfoMapper.selectVeFuelconsumptioninfoByConsumptionID(consumptionID);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param veFuelconsumptioninfo 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<VeFuelconsumptioninfo> selectVeFuelconsumptioninfoList(VeFuelconsumptioninfo veFuelconsumptioninfo)
    {
        return veFuelconsumptioninfoMapper.selectVeFuelconsumptioninfoList(veFuelconsumptioninfo);
    }

    @Override
    public List<VeFuelconsumptioninfoVo> selectVeFuelconsumptioninfoList1(VeFuelconsumptioninfoVo veFuelconsumptioninfoVo) {
        return veFuelconsumptioninfoMapper.selectVeFuelconsumptioninfoList1(veFuelconsumptioninfoVo);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param veFuelconsumptioninfo 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertVeFuelconsumptioninfo(VeFuelconsumptioninfo veFuelconsumptioninfo)
    {
        return veFuelconsumptioninfoMapper.insertVeFuelconsumptioninfo(veFuelconsumptioninfo);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param veFuelconsumptioninfo 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateVeFuelconsumptioninfo(VeFuelconsumptioninfo veFuelconsumptioninfo)
    {
        return veFuelconsumptioninfoMapper.updateVeFuelconsumptioninfo(veFuelconsumptioninfo);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param consumptionIDs 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteVeFuelconsumptioninfoByConsumptionIDs(String consumptionIDs)
    {
        return veFuelconsumptioninfoMapper.deleteVeFuelconsumptioninfoByConsumptionIDs(Convert.toStrArray(consumptionIDs));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param consumptionID 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteVeFuelconsumptioninfoByConsumptionID(Long consumptionID)
    {
        return veFuelconsumptioninfoMapper.deleteVeFuelconsumptioninfoByConsumptionID(consumptionID);
    }
}
